package com.smallA.association.bo;

import com.smallA.association.pojo.Department;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.minidev.json.annotate.JsonIgnore;

/**
 * 报名的部门信息
 *
 * @author wanda
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentData {

    Integer id;
    String name;
    String minister;
    String ministerNum;
    String ministerPhone;
    String ministerEmail;
    String introduction;
    String harvest;
    String link;
    Integer interviewNum;
    Integer interviewNow;
    @JsonIgnore
    Integer associationId;
    Integer applyNum;
    Integer adoptNum;

    public DepartmentData(Department department, Integer applyNum, Integer adoptNum) {
        this.id = department.getId();
        this.name = department.getName();
        this.minister = department.getMinister();
        this.ministerNum = department.getMinisterNum();
        this.ministerPhone = department.getMinisterPhone();
        this.ministerEmail = department.getMinisterEmail();
        this.introduction = department.getIntroduction();
        this.harvest = department.getHarvest();
        this.link = department.getLink();
        this.associationId = department.getAssociationId();
        this.applyNum = applyNum;
        this.adoptNum = adoptNum;
    }
}